<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Global</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Global</h1>

    




<section>

<header>
    
        <h2></h2>
        
    
</header>

<article>
    <div class="container-overview">
    
        

        


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


        
    
    </div>

    

    

    

    

    

    

    
        <h3 class="subsection-title">Members</h3>

        
            
<h4 class="name" id="formatDate"><span class="type-signature">(constant) </span>formatDate<span class="type-signature"></span></h4>


<p class="summary"><p>时间转换工具类</p>.</p>



<div class="description">
    <p>时间转换工具类</p>
</div>







<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="utils_date.js.html">utils/date.js</a>, <a href="utils_date.js.html#line12">line 12</a>
    </li></ul></dd>
    

    

    

    
</dl>





    <h5>Example</h5>
    
    <pre class="prettyprint"><code>formatDate(new Date())
2023-06-07 13:43:01
console.log(formatDate(new Date()))</code></pre>



        
    

    
        <h3 class="subsection-title">Methods</h3>

        
            

    

    
    <h4 class="name" id="isAppletEnv"><span class="type-signature"></span>isAppletEnv<span class="signature">()</span><span class="type-signature"> &rarr; {boolean}</span></h4>
    

    
    <p class="summary"><p>判断是否在小程序环境</p></p>
    















<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="applet_navigate.js.html">applet/navigate.js</a>, <a href="applet_navigate.js.html#line3">line 3</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    <p>true, false</p>
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type">boolean</span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="navigateToApplet"><span class="type-signature"></span>navigateToApplet<span class="signature">(appId, appPagePath, navigateType<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    
    <p class="summary"><p>跳转到i福田小程序， 打开第三方小程序</p></p>
    











    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        
        <th>Default</th>
        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>appId</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            
                <td class="default">
                
                </td>
            

            <td class="description last"><p>跳转的小程序appId， 可不传，直接跳转i福田小程序路径</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>appPagePath</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>

            
                <td class="attributes">
                

                

                
                </td>
            

            
                <td class="default">
                
                </td>
            

            <td class="description last"><p>跳转的小程序路径</p></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>navigateType</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            
                <td class="default">
                
                    navigateTo
                
                </td>
            

            <td class="description last"><p>跳转方式: navigateTo ,switchTab,reLaunch,redirectTo</p></td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="applet_navigate.js.html">applet/navigate.js</a>, <a href="applet_navigate.js.html#line12">line 12</a>
    </li></ul></dd>
    

    

    

    
</dl>




















        
            

    

    
    <h4 class="name" id="openVConcole"><span class="type-signature"></span>openVConcole<span class="signature">(env<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
    

    
    <p class="summary"><p>开启微信调试模式</p>.</p>
    



<div class="description">
    <p>开启微信调试模式</p>
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        
        <th>Attributes</th>
        

        
        <th>Default</th>
        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>env</code></td>
            

            <td class="type">
            
                
<span class="param-type">string</span>


            
            </td>

            
                <td class="attributes">
                
                    &lt;optional><br>
                

                

                
                </td>
            

            
                <td class="default">
                
                    dev
                
                </td>
            

            <td class="description last"><p>生产环境不开启调试</p></td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="utils_console.js.html">utils/console.js</a>, <a href="utils_console.js.html#line8">line 8</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    <p>new VConsole</p>
</div>



    





        
    

    

    
</article>

</section>




</div>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-%25E5%25B0%258F%25E7%25A8%258B%25E5%25BA%258F%25E5%258A%259F%25E8%2583%25BD%25E6%25A8%25A1%25E5%259D%2597.html">小程序功能模块</a></li><li><a href="module-%25E9%2580%259A%25E7%2594%25A8%25E5%25B7%25A5%25E5%2585%25B7.html">通用工具</a></li></ul><h3>Global</h3><ul><li><a href="global.html#formatDate">formatDate</a></li><li><a href="global.html#isAppletEnv">isAppletEnv</a></li><li><a href="global.html#navigateToApplet">navigateToApplet</a></li><li><a href="global.html#openVConcole">openVConcole</a></li></ul>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a>
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>